package com.leon.api.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 交易流水表
 * @program: heima-wallet
 * @author: Leon
 * @date: 2021-03-08 19:37
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_trade")
public class Trade {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer tradeId;     // 交易流水号

    @TableField(value = "trade_time")
    private Date tradeTime;      // 交易时间

    @TableField(value = "trade_money")
    private double tradeMoney;   // 交易金额

    @TableField(value = "trade_type")
    private Integer tradeType;   // 交易类型：1、充值 2、提现 3、支付

    @TableField(value = "account_id")
    private Integer accountId;   // 出账账号


}
